package com.hand.rch25287.zuoye002;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

/**
 * @author 25287
 */

@Aspect
public class Method {

    private String ID = "25287";

    public void before(){
        System.out.println("before: " + ID);
    }

    public void after(){
        System.out.println("after: " + ID);
    }

    @Before(value = "execution(* com.hand.rch25287.zuoye002.ISay.sayHello())")
    public void anoBefore(){
        System.out.println("before: annotation: " + ID);
    }

    @After(value = "execution(* com.hand.rch25287.zuoye002.ISay.sayHello())")
    public void anoAfter(){
        System.out.println("after annotation: " + ID);
    }
}
